package com.justech.eat.mapper.mysql;

import com.justech.eat.entity.AccMonitorLog;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @program: eat-service
 * @description:
 * @author: feifei.li
 * @create: 2020-06-08 18:42
 **/
@Mapper
public interface LocationAccMonitorLogMapper {

    @Delete("delete from e_acc_monitor_log")
    int empty();

    @Select("SELECT COUNT(*) FROM e_acc_monitor_log")
    int count();

    @Select("SELECT * FROM `e_acc_monitor_log`")
    List<AccMonitorLog> findAll();
}
